package ch01;

import java.util.Iterator;
import java.util.List;

/**
 * Hash Table implementation using separate chaining
 * @author X
 *
 * @param <K>
 * @param <V>
 * @param <T>
 */

public class MyHashTable<T> implements Iterable<T>{
	private List<T>[] holder;
	/**
	 * Keeps track of the total number of items in all lists
	 * size <= holder.length
	 */
	private int size;
	
	public MyHashTable() {}
	
	public void put(V value) {
		
	}
	
	public V get(K key) {
		V value = null;
		return value;
	}
	
	boolean containsValue(K key) {
		return true;
	}
	
	long hash(K key) {
		
		return key.hashCode();
	}
	
	public static void main(String[] args) {
		MyHashTable<String, String> ht = new MyHashTable<String, String>();
		long a = ht.hash("aaaaaaaaaaaaa");
		System.out.println(a);
	}

	@Override
	public Iterator<T> iterator() {
		// TODO Auto-generated method stub
		return null;
	}
}
